using System;
using System.Collections.Generic;
using System.Text;

namespace XProject.Entity
{
   public class Person
    {
       int id;
       string name;
       bool gender;
       DateTime dateOfBirth;
       Contact contact;
       string note;
       public int PersonID
        {
            get { return id; }
            set { id = value; }
        }    
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
       public bool Gender
       {
           get { return gender; }
           set { gender = value; }
       }
        public DateTime DateOfBirth
        {
            get { return dateOfBirth; }
            set { dateOfBirth = value; }
        }
       public Contact Contact
       {
           get { return contact; }
           set { contact = value; }
       }
       public string Note
       {
           get { return note; }
           set { note = value; }
       }
        #region constructors
       public Person()
       {
           name = "";
           dateOfBirth = new DateTime();
           contact = new Contact();
           note = "";
           
       }
       public Person(string _name, bool _gender, DateTime _dateOfBirth)
       {
           this.Name = _name;
           this.Gender = _gender;
           this.Contact = new Contact();
           this.DateOfBirth = _dateOfBirth;
       }
        #endregion
        
    }
}
